<?php

namespace Sim\SimBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class SectorType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('nombre')
            ->add('def_alcance')
            ->add('estructura')
            ->add('des_historico')
            ->add('perfil_economico')
            ->add('tendencias')
            ->add('estado_inn')
            ->add('amb_comp')
            ->add('comport_proveedores')
            ->add('comport_clientes')
            ->add('lineas_prod_servicios')
            ->add('factores_externos')
            ->add('visibilidad')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Sim\SimBundle\Entity\Sector'
        ));
    }

    public function getName()
    {
        return 'sim_simbundle_sectortype';
    }
}
